
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        article{
            border: 1px solid blueviolet;
            position: relative;
            /* height: 100px; */
            box-sizing: border-box;
            
        }
        
        div{
            background-color: blueviolet;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            position: absolute;
            top: 5px;
            left: 10px;
            text-align: center;
            cursor: pointer;
        }

        img{
            width: 150px;
            height: 100px;
        }
    </style>

    <article>
        <div>热</div>
        <img src="bear.jpg" alt="">
    </article>

</body>
</html>